﻿<%@ Page Title="" Language="C#" AutoEventWireup="true" CodeBehind="DisplayReviewLog.aspx.cs" Inherits="CodeDemon.Views.Review.DisplayReviewLog" %>


<div class="reviewHeader">Review Change Log</div>

        <table class='tablesorter' id='myTable2'>
            <thead>
                <tr>
                    <th>TimeStamp</th><th>Review User</th><th>Message</th>
                </tr>
            </thead>
            <tbody>

<% 
    var rl = from log in ViewData.Model.DAO.GetReviewLogByReviewID(ViewData.Model.CurrentReviewID) select log;
    foreach( var c in rl) {
       
        %>
        

            

        
        <tr>
            <td><%= c.LogTimeStamp %></td>
            <td><%= c.ReviewUserEmail %></td>
            <td>
                <% if (c.ReviewFileID != null)
                   {
                        %>
                <a href="/CodeDemon/Review/DisplayReviewFileSingle?reviewFileID=<%= c.ReviewFileID %>"><%=c.LogMessage%></a>
            <% } else { %>
                <%=c.LogMessage%>
            <% } %>
            </td>
        </tr>
        
        <%} %>

            </tbody>
        </table>
        
            <script type="text/javascript">
        $(document).ready(function() 
        { 
    $("#myTable2") 
    .tablesorter({widthFixed: true, widgets: ['zebra']});
        } ); 
        
    </script>